<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Thêm sản phẩm';
$this->breadcrumbs=array(
	'Danh sách sản phẩm'=>array('sanpham/index'),'Thêm sản phẩm',
);
?>

<h1>Thêm sản phẩm</h1>


<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'Tbsanpham-form',
	 'enableClientValidation' => true,
	 'htmlOptions' => array('enctype' => 'multipart/form-data'
	),
));

?>

	<div class="row">
		<?php echo $form->labelEx($model,'tensanpham'); ?>
		<?php echo $form->textField($model,'tensanpham'); ?>
		<?php echo $form->error($model,'tensanpham'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'masanpham'); ?>
		<?php echo $form->textField($model,'masanpham'); ?>
		<?php echo $form->error($model,'masanpham'); ?>
	</div> 
	
		<div class="row">
		<?php echo $form->labelEx($model,'iddonvitinh'); 
		echo $form->dropDownList($model,'iddonvitinh', $donvitinh);
		 echo $form->error($model,'iddonvitinh');
		 ?>
		
	</div> 
	
	<div class="row">
		<?php echo $form->labelEx($model,'mota'); ?>
		<?php echo $form->textArea($model,'mota'); ?>
		<?php echo $form->error($model,'mota'); ?>
	</div> 
	

<p class="note">Thông tin bắt buộc <span class="required">*</span></p>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Thêm'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
